﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/master/CenterMain.Master"
    CodeBehind="Invoice.aspx.cs" Inherits="com.huigo.B2B.Web.center.invoice.Invoice" %>

<%@ Register Assembly="AspnetPagerV1" Namespace="AspnetPagerV1" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3 class="greybg">
        我的发票</h3>
    <form id="Form1" runat="server" class="form-search">
    <label>
        订单号</label><asp:TextBox ID="orderNo" runat="server" Columns="16"></asp:TextBox>
    <label>
        订单时间</label><div class="input-append date" data-date="@DateTime.Now.AddMonths(-1).ToString('yyyy-MM-dd')"
            data-date-format="yyyy-mm-dd">
            <asp:TextBox ID="beginDate" runat="server" Columns="8" data-date-format="yyyy-mm-dd"></asp:TextBox>
            <span class="add-on"><i class="icon-calendar"></i></span>
        </div>
    &nbsp;-&nbsp;<div class="input-append date" data-date="@DateTime.Now.AddMonths(-1).ToString('yyyy-MM-dd')"
        data-date-format="yyyy-mm-dd">
        <asp:TextBox ID="endDate" runat="server" Columns="8" data-date-format="yyyy-mm-dd"></asp:TextBox>
        <span class="add-on"><i class="icon-calendar"></i></span>
    </div>
    <br />
    <br />
    <label>
        订单状态</label><asp:DropDownList ID="statusList" runat="server">
        </asp:DropDownList>
    <label>
        保险产品</label><asp:DropDownList ID="insList" runat="server">
        </asp:DropDownList>
    &nbsp;&nbsp;
    <asp:Button ID="btnQuery" CssClass="button btn-big btn-orange" runat="server" Text="查询"
        OnClick="btnQuery_Click" />
    </form>
    <%=Notiy %>
    <asp:Repeater ID="OrderListContent" runat="server">
        <HeaderTemplate>
            <table width="100%" class="table table-bordered table-striped responsive-utilities table-hover">
                <thead>
                    <tr>
                        <th>
                            订单号
                        </th>
                        <th>
                            保险产品
                        </th>
                        <th>
                            申领张数
                        </th>
                        <th>
                            实发张数
                        </th>
                        <th>
                            配送方式
                        </th>
                        <th>
                            订单金额
                        </th>
                        <th>
                            订单时间
                        </th>
                        <th>
                            订单状态
                        </th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%#Eval("OrderNo")%>
                </td>
                <td>
                    <%#Eval("OrderProductName")%>
                </td>
                <td>
                    <%#Eval("OrderPaperCount")%>
                </td>
                <td>
                    <%#Eval("OrderRealPaperCount")%>
                </td>
                <td>
                    <%#Shipping(Eval("OrderDeliverType").ToString(),Eval("OrderId").ToString())%>
                </td>
                <td>
                    <%#string.Format("{0:C2}", Convert.ToDecimal(Eval("OrderAmount")))%>
                </td>
                <td>
                    <%# Convert.ToDateTime(Eval("OrderCreatedOn").ToString().Replace("T", "  ")).ToString("yyyy-MM-dd HH:mm:ss")%>
                </td>
                <td>
                    <%#Eval("StatusView") %><%#orderStatus(Eval("OrderStatusFid").ToString(), Eval("OrderId").ToString())%>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody></table>
        </FooterTemplate>
    </asp:Repeater>
    <cc1:Pager ID="pageInfo" runat="server" OnPageChanged="pageInfo_PageChanged" PageSize="10"
        PreText="上一页" NextText="下一页" ShowPreNext="true" NumericButtonCount="10" Css="page" />

    <script>        H.app.center.order.orderinit();</script>

</asp:Content>
